package com.hellowx.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by IntelliJ IDEA.
 *
 * @author MagicMushroom
 * @date 2021/7/14
 */
@RestController
@RefreshScope
@RequestMapping(value ="/configClient")
public class TestController {

    @Value("${name}")
    private String name;

    @GetMapping
    public String test(){
        return name+"hello";
    }
}
